<?php
require_once("lib/db_connection.php");
$q = $_GET["q"];

$query_select ="SELECT * FROM rou_job_loc_tbl WHERE loc_id='".$q."'";
$result_select = mysql_query($query_select) or die("SELECT LOCS ".mysql_error());

$row_edit_loc = mysql_fetch_array($result_select);

$location = $row_edit_loc['location'];
$start_hrs = $row_edit_loc['start_hrs'];
$start_min = $row_edit_loc['start_min'];
$stop_hrs = $row_edit_loc['stop_hrs'];
$stop_min = $row_edit_loc['stop_min'];
$hrs = $row_edit_loc['hrs'];
$total_hrs = $row_edit_loc['total_hrs'];
$last_odometer= $row_edit_loc['last_odometer'];
$arrival_odometer = $row_edit_loc['arrival_odometer'];
$miles = $row_edit_loc['miles'];
$client = $row_edit_loc['client'];

$arr_string = "'$location','$start_hrs','$start_min','$stop_hrs','$stop_min','$hrs','$total_hrs','$last_odometer','$arrival_odometer','$miles','$client'";

echo "new Array($arr_string)";
?>
